package net.framework.smc.demo.po;


import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @authore zyx
 * @date 2018/6/28 10:53
 */

@Entity
@Data
@Table(name = "T_SYS_USER")
public class User {


    @Id
    @Column(name = "user_id")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String userId;

    @Column(name = "username")
    private String userName;

    @Column(name = "password")
    private String password;

    @Column(name = "phone")
    private String phone;

    @Column(name = "descr")
    private String descr;

    @Column(name = "avatar")
    private String avatar;

    @Column(name = "create_time" , length = 19)
    private String createTime;

    @Column(name = "update_time", length = 19)
    private String updateTime;

    @Column(name = "del_flag", length = 19)
    private Integer delFlag;
}
